﻿namespace XxSystem.FileManager.core
{
    public class ObjectServiceFactory
    {
        public ObjectServiceFactory(IServiceProvider sp)
        {

        }
        private Dictionary<string, IObjectService> objectServices = new Dictionary<string, IObjectService>();

        public void Register(string key, IObjectService service)
        {
            objectServices[key] = service;
        }
        public IObjectService Getter(string key)
        {
            if (objectServices.ContainsKey(key))
            {
                return objectServices[key];
            }
            return null;
        }
    }
}
